package com.example.orderminiappapi.service.Impl;

import com.example.orderminiappapi.bean.AddOrUpdate;
import com.example.orderminiappapi.bean.User;
import com.example.orderminiappapi.dao.UserAddressDao;
import com.example.orderminiappapi.dao.UserRemarksDao;
import com.example.orderminiappapi.service.UserAddressService;
import com.example.orderminiappapi.service.UserRemarksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersRemarksServiceImpl implements UserRemarksService {

    @Autowired
    private UserRemarksDao userRemarksDao;


    @Override
    public List<String> findAllUsersRemarks(User user) {
        return userRemarksDao.findAllUsersRemarks(user);
    }

    @Override
    public int addRemarks(AddOrUpdate addOrUpdate) {
        return userRemarksDao.addRemarks(addOrUpdate);
    }

    @Override
    public int updateRemarks(AddOrUpdate addOrUpdate) {
        return userRemarksDao.updateRemarks(addOrUpdate);
    }

    @Override
    public int deleteRemarks(AddOrUpdate addOrUpdate) {
        return userRemarksDao.deleteRemarks(addOrUpdate);
    }

    @Override
    public int changeCommonRemarks1(AddOrUpdate addOrUpdate) {
        return userRemarksDao.changeCommonRemarks1(addOrUpdate);
    }

    @Override
    public int changeCommonRemarks2(AddOrUpdate addOrUpdate) {
        return userRemarksDao.changeCommonRemarks2(addOrUpdate);
    }
}
